<?php 
namespace app\common\validate;

use think\Validate;

class Communication extends Validate
{
	protected $rule = [
			'mobile'  =>  'require',
			'email' =>  'require|email',
			'address' =>  'require',
	];
	
	protected $message = [
			'mobile.require' =>  '手机号不能为空',
			'email.require' =>  '入职时间不能为空',
			'email.email' => '邮箱不合法', 
			'address.require' =>  '离职时间不能为空',
	];
	
	protected $scene = [
			'add'   =>  ['mobile','email','address'],
	];
}